home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_pyr_pyr2exit.cog < prev    next >
Text File  |  1999-11-15  |  702b  |  37 lines

  1. # Jones 3D Cog Script
  2. #
  3. # pyr_pyr2exit.cog
  4. #    
  5. # Play music when Indy pushes the block out of pyramid 2
  6. #
  7. # [RKD]
  8. #
  9. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13. message    crossed
  14.  
  15. surface    musictrigger
  16.  
  17. sound    exitmusic=mus_inf_cutscene1g.wav    local
  18.  
  19. int        locked=0    local
  20. end
  21.  
  22. # ========================================================================================
  23.  
  24. code
  25. crossed:
  26. # ---> musictrigger adjoin
  27.     if (GetSenderRef() != musictrigger) return;
  28.     if (locked) return;
  29.     locked = 1;
  30.         
  31.     PlaySoundLocal(exitmusic, .5, 0, 0, 0);
  32.     
  33.     return;
  34.  
  35. end
  36.  
  37.